package com.ll.mapper;

import com.ll.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {
    int addBook(Book book);

    List<Book> fingList(@Param("bookName") String bookName, @Param("author") String author);

    int updateBook(Book book);

    List<Book> findBookByCategoryId(@Param("categoryId") int categoryId);
}
